//
//  JLRJTitleCell.m
//  Estate
//
//  Created by heyong on 16/6/23.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "JLRJTitleCell.h"

@implementation JLRJTitleCell

- (void)setIsEdit:(BOOL)isEdit{
    self.title.userInteractionEnabled=isEdit;

}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle=UITableViewCellSelectionStyleNone;
    self.title.textColor=[UIColor colorWithRed:0.44 green:0.45 blue:0.45 alpha:1.00];
} 

//查看页 隐藏dlt 修改约束
- (void)setStr:(NSString *)str{
    if(str){
        self.dltBtn.hidden=YES;
        self.titleLeftConstraints.constant=5.f;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)clickBtn:(UIButton *)sender {
    if(self.dltBlock){
        self.dltBlock();
    }
}

- (IBAction)ClickDetail:(UIButton *)sender {
    if(self.detailBlick){
        self.detailBlick();
    }
    
}
- (IBAction)editChange:(UITextField *)sender {
    if(self.textValueChangedBlock){
        self.textValueChangedBlock(sender.text);
    }
}

- (IBAction)editEdn:(UITextField *)sender {
    if(self.editDidEndBlock){
        self.editDidEndBlock(sender.text);
    }
}
@end
